from sympy import factorint
a = factorint(5043931)
a